import service from "./request"

//选课管理
export function stuCourseGetPage(params, page) {
    return service({
        url: '/admin/student/course/page/' + page,
        method: 'get',
        params: params
    })
}


// 选课页数
export function stuCourseGetPageCount(params) {
    return service({
        url: '/admin/student/course/page/count',
        method: 'get',
        params: params
    })
}

// 选课添加
export function stuCourseAdd(data) {
    return service({
        url: '/admin/student/course',
        method: 'post',
        data: data
    })
}
//删除选课
export function stuCourseDelete(id) {
    return service({
        url: '/admin/student/course/' + id,
        method: 'delete',
    })
}

//根据id获取选课
export function stuCourseInfo(id) {
    return service({
        url: '/admin/student/course/' + id,
        method: 'get',
    })
}
//编辑选课
export function stuCourseEdit(data) {
    return service({
        url: '/admin/student/course',
        method: 'put',
        data: data
    })
}

//学生信息
export function studentName() {
    return service({
        url: '/admin/student/names',
        method: 'get',
    })
}
//课程信息
export function courseName() {
    return service({
        url: '/admin/course/names',
        method: 'get',
    })
}


